<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<p:dialog modal="true" widgetVar="statusDialog" header="Descargando Archivo" draggable="false" closable="false" resizable="false">  
				    <p:progressBar id="progressBarClient" widgetVar="pbClient" styleClass="animated"/>  
	</p:dialog>  
				
				<script type="text/javascript">  
					function start() {  
						pbClient.setValue(0);
						pbClient.setValue(20);  
					    statusDialog.show();  
					}  
					  
					function stop() {  
						pbClient.setValue(40);
						pbClient.setValue(60);
						pbClient.setValue(90);
						pbClient.setValue(100);
					    statusDialog.hide();  
					    pbClient.setValue(0);
					}  
        		</script> 	

</ui:composition>
